using System;
using Betfair.Api.Types;
using Newtonsoft.Json;

namespace Betfair.Api
{
    public sealed class Match
    {
        public Match(string betId, string id, Side side, double price, double size, DateTime date)
        {
            BetId = betId;
            Id = id;
            Side = side;
            Price = price;
            this.size = size;
            Date = date;
        }

        [JsonProperty("betId")]
        public string BetId { get; private set; }

        [JsonProperty("matchId")]
        public string Id { get; private set; }

        [JsonProperty("side")]
        public Side Side { get; private set; }

        [JsonProperty("price")]
        public double Price { get; private set; }

        [JsonProperty("size")]
        public double size { get; private set; }

        [JsonProperty("matchDate")]
        public DateTime Date { get; private set; }
    }
}